﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;

public partial class Admin_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //get all files except self
        DirectoryInfo dir = new FileInfo(Server.MapPath(Context.Request.AppRelativeCurrentExecutionFilePath)).Directory;
        FileInfo[] files = dir.GetFiles("*.aspx").Where(x => !x.Name.Equals("default.aspx", StringComparison.InvariantCultureIgnoreCase)).ToArray();
        rpt.DataSource = files;
        rpt.DataBind();
        
    }
}
